//
//  GetChatTime.h
//  NLProjectFrameworkDemo
//
//  Created by iosdeveloper on 2020/5/10.
//  Copyright © 2020 yj_zhang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MantisCellBaseModel.h"

NS_ASSUME_NONNULL_BEGIN
static NSInteger maxMinute=5;
@interface GetChatTime : NSObject
/**
 聊天时间转换器，非常好用

 @param TimeInterval 时间，传入毫秒，里面自动转为秒（double类型）
 @param needTime 是否显示昨天今天后面的时间
 @return 时间字符串
 */
+(NSString *)getMessageDateStringFromTimeInterval:(NSTimeInterval)TimeInterval andNeedTime:(BOOL)needTime;


+(NSTimeInterval)getTimeStampFrom:(NSString*)pstrTime;

////计算每条消息是否显示时间
//dataArray:UITableView的数据源 historyArr:历史消息
-(NSMutableArray*)computeVisibleTimeAndRefreshTable:(NSString *)type dataArr:(NSMutableArray*)dataSouce historyArr:(NSArray*)historyArr;



@end

NS_ASSUME_NONNULL_END
